<?php

use Phinx\Migration\AbstractMigration;

class AddPersonInChargeColumnInOrderTable extends AbstractMigration
{

    public function up()
    {
        $this->table("order")
            ->addColumn("party_a_person_in_charge", 'integer', [
                'null' => false,
                'default' => 0,
                'comment' => "订单甲方负责人",
                'limit' => 11,
            ])
            ->save();
    }

    public function down()
    {
        $this->table("order")->removeColumn("party_a_person_in_charge")->save();
    }
}
